﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CuitContext.cs" company="">
//   
// </copyright>
// <summary>
//   The cuit context.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace UITest.CUIT.CuitContext
{
    using System;

    using Microsoft.VisualStudio.TestTools.UITesting;

    using UITest.Report;

    /// <summary>
    /// The cuit context.
    /// </summary>
    public class CuitContext : IDisposable
    {
        #region Fields

        /// <summary>
        ///     The report.
        /// </summary>
        public ReportListener Report;

        #endregion

        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitContext"/> class.
        /// </summary>
        public CuitContext()
        {
            ReportFactory.New();
            this.Report = ReportFactory.GetReportListener();
            this.TIMEOUT_SEC = 60;
        }

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets or sets the browser window.
        /// </summary>
        public BrowserWindow BrowserWindow { get; set; }

        /// <summary>
        ///     Gets or sets the timeout sec.
        /// </summary>
        public int TIMEOUT_SEC { get; set; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The dispose.
        /// </summary>
        public void Dispose()
        {
        }

        #endregion
    }
}